package com.example.enterprisemanager.mvvm.adapter;

import com.example.enterprisemanager.R;
import com.example.enterprisemanager.base.BaseBindingAdapter;
import com.example.enterprisemanager.base.BaseBindingViewHolder;
import com.example.enterprisemanager.databinding.ItemRuinGoodsBinding;
import com.example.enterprisemanager.mvvm.fragment.manager.ben.Goods;

public class RuinAdapter extends BaseBindingAdapter<Goods, BaseBindingViewHolder> {

    public RuinAdapter() {
        super(R.layout.item_ruin_goods);
    }

    @Override
    protected void convert(BaseBindingViewHolder helper, Goods item) {
        helper.addOnClickListener(R.id.btn_ruin_item);
        ItemRuinGoodsBinding binding = helper.getBinding();
        binding.setGoods(item);
    }
}
